﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="Controls_Login" %>
<link href="../css/stylesheet.css" rel="stylesheet" type="text/css" />
<div>
    <asp:MultiView ID="mtvdangnhap" runat="server" ActiveViewIndex="0">
        <asp:View ID="viewdangnhap" runat="server">
            <div style="padding: 0px 19px 8px; font-size: 1.2em;">
                <div style="padding: 8px 0px 0px;">
                    <asp:Label ID="lbluser" runat="server">Tên đăng nhập:</asp:Label><br />
                    <asp:TextBox ID="txtuser" runat="server" Width="120px"></asp:TextBox>
                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="*" ControlToValidate="txtuser"></asp:RequiredFieldValidator>--%>
                </div>
                
                <div style="margin: 8px 0px;">
                    <asp:Label ID="lblpass" runat="server">Mật khẩu:</asp:Label><br />
                    <asp:TextBox ID="txtpassword" runat="server" Width="120px" TextMode="Password"></asp:TextBox>
                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtpassword" ErrorMessage="*"></asp:RequiredFieldValidator>--%>
                </div>
                
                <asp:Button ID="cmddangnhap" runat="server" Text="Đăng Nhập" OnClick="cmddangnhap_Click"
                    CausesValidation="False" Height="24px" Width="83px" />
                <br />
                <br />
                <asp:Label ID="lblthongbao" runat="server" ForeColor="red"></asp:Label>
                <%--<span style="margin:6px 0px ; display:block;padding-left:24px;padding-bottom:2px;background:url(Images/register.gif);"><asp:HyperLink ID="hpldangky" runat="server" NavigateUrl="~/DangKy.aspx">Đăng ký</asp:HyperLink></span>--%>
            </div>
        </asp:View>
        <asp:View ID="viewdangxuat" runat="server">
            <div style="font-size: 1.2em; padding: 8px 8px 8px; line-height: 1.4em;">
                <span>Chào mừng
                    <%=Session["User_Name"].ToString() %>!</span><br />
                [<asp:LinkButton ID="lnkdangxuat" runat="server" CssClass="hyperdangnhap" OnClick="lnkdangxuat_Click"
                    CausesValidation="False">Đăng xuất</asp:LinkButton>]
                <br />
                <asp:Panel ID="pnadmin" runat="server" Visible="True">
                    [<asp:HyperLink ID="hpladmin" runat="server" NavigateUrl="~/ad/ManageProduct.aspx" CssClass="hyperdangnhap">Vào trang Admin</asp:HyperLink>]</asp:Panel>
            </div>
        </asp:View>
    </asp:MultiView>
    <div class="controlleft">
    </div>
    <div class="controlright">
    </div>
</div>
